<%-------------------------------------------------------------------
 * 页面名称：ivrPass_modify.jsp
 * 功能描述：修改电话银行账户密码
 * Action  : 
 *
 *-------------------------------------------------------------------
--%>
<%@ page contentType="text/html; charset=utf-8"%>
<%@ page import="cn.agiledata.bank.account.service.IAccountConst"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-tiles.tld" prefix="tiles"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/conf/tld/struts-bean.tld" prefix="bean"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="ipb" uri="/WEB-INF/conf/tld/ipb.tld"%>
<%@ taglib prefix="ad" uri="agiledata"%>
<%
String path = request.getContextPath();
%>
<script type='text/javascript'
	src='<%=path%>/js/vnv/passwordStrength.js'></script>
<SCRIPT LANGUAGE="JavaScript">
	function submitProcess() {
		var formName = document.forms["0"];
		if(checkNecessaryInput(formName)) {
			if(document.getElementById("newPass").value.length < 6 || document.getElementById("reNewPass").value.length < 6) {
				alert("密码必须大于6位！");
				return false;
			}
			if(isNaN(document.getElementById("newPass").value)){
				alert("请使用数字作为电话账户的密码！");
				return;
			}
			if(document.getElementById("newPass").value!=document.getElementById("reNewPass").value){
				alert("两次输入的新密码要一致！");
				return false;
			}
			formName.submit();
		}
	}
</SCRIPT>
<div id="mainFrame">
	<div class="rightSider">
		<div class="sub_title">
			<span class="bluefont18bdrop">电话账户<logic:equal name="IVRForm"
					property="modifyType" value="<%=IAccountConst.MODIFY_TYPE_PAY%>">支付</logic:equal>
				<logic:equal name="IVRForm" property="modifyType"
					value="<%=IAccountConst.MODIFY_TYPE_LOGIN%>">登录</logic:equal>密码修改</span>
		</div>
		<div class="edit_pass">
			<table width="100%" border="0" align="center" cellpadding="5"
				cellspacing="1">
				<html:form action="IVRPass_modify.do">
					<!-- 修改类型 login--登入密码 pay--支付密码 -->
					<html:hidden property="modifyType" />
					<tr>
						<td height="40" align="right">
							<span class="orang12b">*</span> 旧密码：
						</td>
						<td bgcolor="#FFFFFF">
							<html:password property="pass" alt="旧 密 码" value=""
								maxlength="20" styleClass="inputStyle"
								onkeyup="oldPassword.update(this.value)" />
							<a
								href="<%=path%>/page/myspace/forgotIVRPassword.do?modifyType=<bean:write name="IVRForm" property="modifyType" />"
								class="dropblue14b">忘记旧密码</a>
						</td>
						<td bgcolor="#FFFFFF">
							<ad:passwordStrength objectName="oldPassword" />
						</td>
					</tr>
					<tr>
						<td width="20%" height="40" align="right">
							<span class="orang12b">*</span> 新密码：
						</td>
						<td width="40%" bgcolor="#FFFFFF">
							<html:password property="newPass" alt="新 密 码" value=""
								maxlength="20" styleClass="inputStyle"
								onkeyup="newPassword.update(this.value)" />
						</td>
						<td width="40%" bgcolor="#FFFFFF">
							<ad:passwordStrength objectName="newPassword" />
						</td>
					</tr>
					<tr>
						<td height="40" align="right">
							<span class="orang12b">* </span> 重复新密码：
						</td>
						<td bgcolor="#FFFFFF">
							<html:password property="reNewPass" alt="重复新密码" value=""
								maxlength="20" styleClass="inputStyle"
								onkeyup="confirmPassword.update(this.value)" />
						</td>
						<td bgcolor="#FFFFFF">
							<ad:passwordStrength objectName="confirmPassword" />
						</td>
					</tr>
					<logic:notEqual name="IVRForm" property="errorMsg" value="">
						<tr>
							<td height="25" align="center">
								&nbsp;
								<font color="#FF0000"><bean:write name="IVRForm"
										property="errorMsg" />！</font>
							</td>
						</tr>
					</logic:notEqual>
					<tr>
						<td height="55" align="right">
							&nbsp;
						</td>
						<td height="50" colspan="2" bgcolor="#FFFFFF">
							<input name="button2" type="button" class="button_style"
								onclick="submitProcess();" value="确 定" />
							<input name="button" type="button" class="button_style"
								onclick="loading('<%=path%>/route.do?modual=space$account&showTab=3');"
								value="返 回" />
						</td>
					</tr>
				</html:form>
			</table>
		</div>
	</div>
</div>
<div align="center">
	<!-- include 我的账户左侧账户管理菜单 -->
	<jsp:include page="left.jsp?current=telacct" />
</div>
